package com.szrt.day20161025.oa.base.service.impl;

import com.szrt.day20161025.oa.base.dao.BaseDao;
import com.szrt.day20161025.oa.base.dao.impl.BaseDaoImpl;
import com.szrt.day20161025.oa.base.service.BaseService;

public class BaseServiceImpl<T> implements BaseService<T> {

	private BaseDao<T> dao = new BaseDaoImpl<T>();
	
	
	@Override
	public int add(T t) {
		return dao.add(t);
	}

	@Override
	public int delete(int id) {
		return dao.delete(id);
	}

	@Override
	public int update(T t) {
		return dao.update(t);
	}

	@Override
	public T findById(int id) {
		return dao.findById(id);
	}

}
